package com.bwie.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.pojo.Menu;
import com.bwie.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bwie.vo.PageInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 陶仕豪
* @description 针对表【tb_user(用户表)】的数据库操作Mapper
* @createDate 2025-07-18 11:34:06
* @Entity com.bwie.pojo.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<String> getRoleList(@Param("userId") Integer userId);

    List<Menu> getMenuTree(@Param("userId") Integer userId);

    Page<User> getShopperList(@Param("page") Page<User> userPage,@Param("pageInfoVo") PageInfoVo pageInfoVo);

}




